public
nobgit
read
wiki.wiki
No description yet
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/wiki.wiki.git
ssh://[email protected]:2222/orgs/nobgit/wiki.wiki.git
Trace
How to upload a GPG key.md
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
# How to upload a GPG key
3
## Generate and export a GPG key
5
Install GPG first if your system does not already include it. Use the same email address you use for Git commits.
7
### Windows
9
1. Install **Gpg4win**.
10
2. Open **PowerShell**.
11
3. Run `gpg --full-generate-key`.
12
4. Choose an RSA or ECC key, set an expiration date, and enter your name and email address.
13
5. List your keys with `gpg --list-secret-keys --keyid-format=long`.
14
6. Export the public key with `gpg --armor --export KEY_ID`.
16
### macOS
18
1. Install GPG with **GPG Suite** or Homebrew.
19
2. Open **Terminal**.
20
3. Run `gpg --full-generate-key`.
21
4. Choose an RSA or ECC key, set an expiration date, and enter your name and email address.
22
5. List your keys with `gpg --list-secret-keys --keyid-format=long`.
23
6. Export the public key with `gpg --armor --export KEY_ID`.
25
### Linux
27
1. Install GPG from your package manager if needed.
28
2. Open your terminal.
29
3. Run `gpg --full-generate-key`.
30
4. Choose an RSA or ECC key, set an expiration date, and enter your name and email address.
31
5. List your keys with `gpg --list-secret-keys --keyid-format=long`.
32
6. Export the public key with `gpg --armor --export KEY_ID`.
34
## Upload the key to NobGit
36
1. Click your account menu in the top right.
37
2. Click **Settings**.
38
3. Open **Access**.
39
4. Open **Git access**.
40
5. Find **GPG keys**.
41
6. Enter a key **Name**.
42
7. Paste the ASCII-armored public key into **Public key**. It normally starts with `-----BEGIN PGP PUBLIC KEY BLOCK-----`.
43
8. Select **Add GPG key**.
45
NobGit syncs the GPG keyring after the key is saved.
47
- [Previous: SSH key](How to upload an SSH key.md)
49
- [Next: commit to NobGit](How to commit to NobGit.md)